<?php
/*------------------------------------------------------------------------------
this file is part of Web Application Kit http://webappkit.net
Copyright (C) 2006 J.Ducastel <jducastel@jducastel.fr>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
------------------------------------------------------------------------------*/

/**
* This class static methods is the central API for webappkit
* @author J.Ducastel <jducastel@jducastel.fr>
* @version 
*/
class wakAPI {
/*------------------------------------------------------------------------------
                                                                     constructor
------------------------------------------------------------------------------*/
	/**
	*
	* @access
	* /
	function () {
		$this->__construct();
	}/**/
	
	/**
	* "real" constructor
	* @access
	* /
	function __construct() {
		
	}/**/
/*------------------------------------------------------------------------------
                                                                  public methods
------------------------------------------------------------------------------*/
	/**
	* raise an error = wakdebug->error
	* @static
	* @param string $txt error message
	* @access public
	* @return wakError
	*/
	function & error($txt='') {
		// getting requested service
		$s=&wak::getservice('wakdebug');
		$r=&$s->builderror('error',$txt,2);
		return $r;
	}/**/
	
	/**
	* raise a warning = wakdebug->warning
	* @static
	* @param string $txt error message
	* @access public
	* @return wakError
	*/
	function & warning($txt='') {
		// getting requested service
		$s=&wak::getservice('wakdebug');
		$r=&$s->builderror('warning',$txt,2);
		return $r;
	}/**/
	
	/**
	* raise an error = wakdebug->error
	* @static
	* @param string $txt error message
	* @access public
	* @return wakError
	*/
	function & notice($txt='') {
		// getting requested service
		$s=&wak::getservice('wakdebug');
		$r=&$s->builderror('notice',$txt,2);
		return $r;
	}/**/
	
	/**
	* checks for type/class
	* @static
	* @access public
	* @param mixed $param by reference
	* @param string $types
	* @param string $name
	* @param string $errorLevel
	* @return false|wakError
	*/
	function & hasWrongType(& $param,$types,$name=NULL,$errorLevel='notice') {
		// getting requested service
		$s=&wak::getservice('wakdebug');
		$r=$s->hasWrongType($param,$types,$name,$errorLevel);
		return $r;
	}/**/
	
	/**
	* return text dump of the var
	* @static
	* @access public
	* @param mixed $var by reference the var to dump
	* @param string $mode text html
	* @param int $cut
	* @return string
	*/
	function varDump(&$var, $mode='html',$cut=50) {
		// getting requested service
		$s=&wak::getservice('wakdebug');
		return $s->vardump($var, $mode,$cut);
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* include requested class definition file
	* @static
	* @access public
	* @param string $class
	* @param bool $fromCore
	* @return bool
	*/
	function needClass($class,$fromCore=false) {
		// getting requested service
		$s=&wak::getservice('waklib');
		return $s->needClass($class,$fromCore);
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	*/
	function SetResponseTemplate($id) {
		// getting requested service
		$s=&wak::getservice('wakresponsebuilder');
		return $s->setTemplateId($id);
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
	
	/**
	* 
	* @static
	* @param
	* @access public
	* @return 
	* /
	function () {
		// getting requested service
		$s=&wak::getservice('');
		return $s->();
	}/**/
/*------------------------------------------------------------------------------
                                                                      properties
------------------------------------------------------------------------------*/
	/**
	* @var type desc
	*/
	//var //
	
/*------------------------------------------------------------------------------
                                                               protected methods
------------------------------------------------------------------------------*/
	/**
	* 
	* @param
	* @access protected
	* @return 
	* /
	function () {
		
	}/**/
	
	/**
	* 
	* @param
	* @access protected
	* @return 
	* /
	function () {
		
	}/**/
	
/*------------------------------------------------------------------------------
                                                                 private methods
------------------------------------------------------------------------------*/
	/**
	* 
	* @param
	* @access private
	* @return 
	* /
	function () {
		
	}/**/
	
	/**
	* 
	* @param
	* @access private
	* @return 
	* /
	function () {
		
	}/**/
}
?>
